/*
 * AddRace.h
 *
 *  Created on: Jan 3, 2009
 *      Author: sez
 */

#ifndef ADDRACE_H_
#define ADDRACE_H_

#include <QDialog>

#include <Xml/XmlPath.h>

#include "AddUpdateDialog.h"

namespace Ui {
    class AddRaceDialog;
}
class RaceModels;
class Race;

class AddRaceDialog : public AddUpdateDialog
{
    Q_OBJECT
public:
    AddRaceDialog(QWidget *parent = 0);
    virtual ~AddRaceDialog();
    TitledData *data();
    static AddRaceDialog *dialog(QWidget *parent = 0);
protected:
    void loadData();
    void saveData();
    void setupData();
    void clearData();
private Q_SLOTS:
    void on_traitPushButton_clicked(bool);
    void on_powerPushButton_clicked(bool);
private:
    Ui::AddRaceDialog *mAddRace;
    Race *mData;
    RaceModels *mModels;
};

#endif /* ADDRACE_H_ */
